package com.yfp.org.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.yfp.org.domain.entity.Area;
import com.yfp.org.mapper.AreaMapper;
import com.yfp.org.service.AreaService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {

    @Resource
    private AreaMapper areaMapper;

    @Override
    public List<Area> listByIds(List<String> areaIds) {
        if (CollUtil.isEmpty(areaIds)){
            return List.of();
        }
        return areaMapper.listByIds(areaIds);
    }
}
